package 如何初始化数组;

public class 数组反转9 {
	public static void main(String[] args) {
        int[] a = new int [5] ;
        for(int i=0;i<5;i++) {
            a[i] = (int) (Math.random() * 100);
             
            System.out.print(a[i]+"\t");
        }
        System.out.println("\n-------------反转------------------");
        for(int j = 4;j>=0;j--)
             
        System.out.print(a[j]+"\t");
         
    }  
}
